# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=geopard
pkgver=1.2.0
pkgrel=0
pkgdesc="Colorful, adaptive gemini browser"
url="https://ranfdev.com/projects/geopard/"
arch="all !s390x !riscv64" # blocked by cargo -> rust / gtk4.0
license="GPL-3.0-or-later"
makedepends="
	blueprint-compiler
	cargo
	desktop-file-utils
	glib-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	openssl-dev
	"
source="$pkgname-$pkgver.tar.xz::https://github.com/ranfdev/Geopard/releases/download/v$pkgver/com.ranfdev.Geopard.tar.xz"
options="!check" # no test suite

prepare() {
	default_prepare
	rm -rf "$builddir"/subprojects/blueprint-compiler
}

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
b3482ae5a1bfc4e15f8a16b19a18191bec1ec1066646b5207ebdecf2a42192a6cffdec22f64c52a1447f1696a32f17cd01c9e507b3c69b6b8a0eed96dc80916f  geopard-1.2.0.tar.xz
"
